<?php

declare(strict_types=1);

namespace App\Constants;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

#[Constants]
class RedisKey extends AbstractConstants {

    /**
     * GM系统支撑
     */
    public const PREFIX = 'QmSlDnf:';
    public const ADMIN_LOGIN_ID = self::PREFIX . 'AdminLogin:Id';
    public const ADMIN_LOGIN_AUTH = self::PREFIX . 'AdminLogin:Auth';
    public const API_INFO = self::PREFIX . 'ApiConf:ApiInfo';
    public const API_ACCESS_TOKEN = self::PREFIX . 'ApiConf:AccessToken';
    public const API_WIKI_LOGIN_ID = self::PREFIX . 'WikiLogin:Id';
    public const API_WIKI_LOGIN_AUTH = self::PREFIX . 'WikiLogin:Auth';

    /**
     * 游戏基础业务支撑
     */
    public const QUEUE_API_LOG = self::PREFIX . 'Queue:ApiLog';
    public const QUEUE_PAY_LOG = self::PREFIX . 'Queue:PayLog';
    public const QUEUE_ORDER_REFRESH = self::PREFIX . 'Order:Refresh:';
    public const GM_STATISTICS_SHOP_BUY = self::PREFIX . 'GmStatistics:ShopBuy'; // 商城购买

    /**
     * 游戏配置相关
     */
    public const GM_PREFIX = 'QmSlDnfConf:';
    public const GM_INFO = self::GM_PREFIX . 'Info';
    public const GM_CONF_TRANCE = self::GM_PREFIX . 'TranceConf';  // GM系统配置表上传临时预览

    /**
     * 聊天服务器
     */
    public const GM_CHAT_PRE = self::PREFIX . 'Chat';

    /**
     * 平台版本
     */
    public const GM_PLATFORM = self::PREFIX . 'Platform:';

    /**
     * 限时礼包相关 注：需同步中心服务器
     */
    public const GM_TIME_LIMIT_PRE = self::PREFIX . 'GmTimeLimit:';
    public const GM_SHOP_TIME_LIMIT = self::GM_TIME_LIMIT_PRE . 'Shop:'; //shop_info的礼包

    /**
     * 商城相关
     */
    public const GM_SHOP_RMB = self::PREFIX . 'RmbShop';

    /**
     * 短线发送验证相关
     */
    public const GM_SMS = self::PREFIX . 'Sms:';

}
